package leets.leet2357;

import java.util.HashSet;
import java.util.Set;

public class Solution {
    public int minimumOperations(int[] nums) {
        Set<Integer> set=new HashSet<>();
        for(int e:nums){
            if(e!=0){
                set.add(e);
            }

        }
        return set.size();

    }
}